<?php
/**
 * Created by PhpStorm.
 * User: yanghe
 * Date: 2016/5/19
 * Time: 20:06
 */
namespace App\Http\Controllers\User;

use App\Http\Controllers\Controller;
use MyClass\Admin\ArticleClassBase;
use MyClass\Admin\ArticleBase;

class IndexBaseController extends Controller
{
    public function select($class_id,$article_id)
    {
        $data['classData']=ArticleClassBase::sClass();
        $data['className']=ArticleClassBase::sClassName($class_id);
        $data['articleData']=ArticleBase::allArticle();
        $data["article_list"]=ArticleBase::sArticleByClassId($class_id);
        $a = new ArticleBase($article_id);
        $data["article"]=$a->sArticle();
        return view("User.Index.article",$data);
    }
}